<!DOCTYPE html>
<html>
<head>
    <title>订单信息表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("order:order:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("order:order:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("order:order:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">卖家用户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.saleUserId" placeholder="卖家用户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">买家用户id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.buyUserId" placeholder="买家用户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单单号(供查询)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.orderNo" placeholder="订单单号(供查询)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单状态 1:待付款 2:已付款 3:已发货 4:已签收 5:退货申请中 6:退货中 7:已完成退货 8:取消交易</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.orderStatus" placeholder="订单状态 1:待付款 2:已付款 3:已发货 4:已签收 5:退货申请中 6:退货中 7:已完成退货 8:取消交易"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">仅针对订单状态为8,订单取消原因：1、拍错了；2、商品不发货；3、协商一致退款；4、其他原因'</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.cancelReason" placeholder="仅针对订单状态为8,订单取消原因：1、拍错了；2、商品不发货；3、协商一致退款；4、其他原因'"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品项目数量(不是商品的数量)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.goodsCount" placeholder="商品项目数量(不是商品的数量)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">商品总价</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.amountTotal" placeholder="商品总价"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">实际付款金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.orderAmountTotal" placeholder="实际付款金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">运费金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.logisticsFee" placeholder="运费金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否开发票 0:否 1:是 (保留字段)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.makeOutInvoice" placeholder="是否开发票 0:否 1:是 (保留字段)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">发票编号 (保留字段)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.invoiceNo" placeholder="发票编号 (保留字段)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单收货地址id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.addressId" placeholder="订单收货地址id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">物流id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.logisticsId" placeholder="物流id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">支付渠道 1:支付宝 2:微信...</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.payChannel" placeholder="支付渠道 1:支付宝 2:微信..."/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">第三方支付流水号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.outTradeNo" placeholder="第三方支付流水号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间(下单时间)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.createTime" placeholder="创建时间(下单时间)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">付款时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.payTime" placeholder="付款时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.remarks" placeholder="订单备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.updateTime" placeholder="更新时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">订单状态 1:有效 2:无效</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.curState" placeholder="订单状态 1:有效 2:无效"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label"></div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="order.couponId" placeholder=""/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/order/order.js?_${.now?long}"></script>
</body>
</html>